From a4f866aa79c1f491dda52284aadc5bfce9395314 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Sat, 25 Apr 2026 03:22:03 +0200 Subject: [PATCH] extensions-tool: Use g_strcmp0() for NULL-safety While the argument cannot actually be NULL here (check in caller), this isn't easily detected by tooling. Spotted by gobject-linter: use_g_strcmp0 Part-of: (cherry picked from commit cc9735f968df2e0048869813d95e6a108cc6814b) --- subprojects/extensions-tool/src/command-upload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/extensions-tool/src/command-upload.c b/subprojects/extensions-tool/src/command-upload.c index 2ead25f16..60446f342 100644 --- a/subprojects/extensions-tool/src/command-upload.c +++ b/subprojects/extensions-tool/src/command-upload.c @@ -174,7 +174,7 @@ read_password_file (const char *filename, g_autoptr (GDataInputStream) istream = NULL; char *line = NULL; - if (strcmp (filename, "-") == 0) + if (g_strcmp0 (filename, "-") == 0) { g_autoptr (GInputStream) stdin = NULL; -- 2.39.5